package com.sm.tool.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: practice
 * @description:
 * @author: liqitian.
 * @create: 2019-12-05 15:03
 **/
@Data
@ApiModel
public class TicketsVO {
    /**
     * CREATE TABLE `tickets_0` (
     *   `id` bigint(21) NOT NULL,
     *   `ticket_name` varchar(21) NOT NULL COMMENT '优惠卷名称',
     *   `ticket_code` varchar(21) NOT NULL COMMENT '优惠券code 前端展示',
     *   `type` smallint(1) NOT NULL COMMENT '0:满减券,1:折扣券,1:立减券',
     *   `number` int(11) NOT NULL DEFAULT '0' COMMENT '发放数量',
     *   `use_user_type` smallint(1) NOT NULL COMMENT '能使用该券的用户类型. 0:不限制,1新用户',
     *   `max_receive` int(2) NOT NULL COMMENT '每人最多领取多少张',
     *   `term_of_validity` int(3) NOT NULL COMMENT '有效期（30,表示领取30后过期。0表示不限制）',
     *   `explains` text NOT NULL COMMENT '使用说明（xxx）',
     *   `full_red` varchar(6) DEFAULT NULL COMMENT '满50减20（50,20）',
     *   `discount` double(1,1) DEFAULT NULL COMMENT '折扣（8）',
     *   `vertical_reduction` int(9) DEFAULT NULL COMMENT '立减(20)',
     *   `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
     *   `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
     *   `create_id` bigint(21) NOT NULL COMMENT '创建人',
     *   PRIMARY KEY (`id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
     */

    @ApiModelProperty(value = "券id")
    private Long id;

    @ApiModelProperty(value = "券名称")
    private String ticketName;

    @ApiModelProperty(value = "券code")
    private String ticketCode;

    @ApiModelProperty(value = "券类型,0:满减券,1:折扣券,1:立减券")
    private Integer type;

    @ApiModelProperty(value = "发放数量")
    private Integer number;

    @ApiModelProperty(value = "能使用该券的用户类型. 0:不限制,1新用户")
    private Integer useUserType;

    @ApiModelProperty(value = "每人最多领取多少张")
    private Integer maxReceive;

    @ApiModelProperty(value = "有效期（30,表示领取30后过期。0表示不限制）")
    private Integer termOfValidity;

    @ApiModelProperty(value = "使用说明")
    private String explains;

    @ApiModelProperty(value = "满50减20（50,20）")
    private String fullRed;

    @ApiModelProperty(value = "折扣（8）")
    private BigDecimal discount;

    @ApiModelProperty(value = "立减(20)")
    private Integer verticalReduction;

    @ApiModelProperty(value = "最后更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "创建人昵称")
    private String createUserNickName;
}
